<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>百钱买白鸡</title>
    <script type="text/javascript">
    for(var i = 1;i < 20;i++)
    {
        for(var j = 1;j < 33;j++)
        {
            for(var k = 0;k <= 100;k += 3)
            {
                if(i + j + k == 100)
                {
                    if(5 * i +3 * j +k / 3 == 100)
                    {
                        console.log("公鸡:"+i+"母鸡:"+j+"小鸡:"+k);
                    }
                }
            }
        }
    }
    </script>
</head>
<body>
    
</body>
</html>